package week8.thursday;

public class Transport {
    private String name;
    private int speed;


    public  Transport(String name,int speed){
        this.name = name;
        this.speed = speed;
    }

    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public Transport(){
    }
    public void showInfo(){
        System.out.println("交通工具是：" + name);
        System.out.println(name + "速度为" + speed);
    }
    public void moveWay(){
        System.out.println("moveway");
    }
}
